package com.example.druiddemo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
public class JdbcTemplateController {

    /*@Autowired
    private JdbcTemplate jdbcTemplate;

    @ResponseBody
    @GetMapping("/queryByJT")
    public String getData(){
        List<Map<String, Object>> maps = jdbcTemplate.queryForList("SELECT * FROM rpc_cod_map where id = ?", "1");
        return maps.toString();
    }*/


}
